package com.dingpeikeji.quickdeer.modules.wx.driver.vo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 司机绑定对象
 *
 */
public class BindDriver {
	
	private String phone; // 手机号
	private String openid; // 微信openid

	@Pattern(regexp="^1[3|4|5|7|8]\\d{9}$", message="手机号格式不合法")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	@NotNull(message="未关注用户或非法访问")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

}
